/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.bus.dao;

import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.bus.entity.Ent;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 养殖场企业信息DAO接口
 * @author mengying
 * @version 2019-05-29
 */
@MyBatisDao
public interface EntDao extends CrudDao<Ent> {


    public Map<String, Object> find(String id) throws Exception;
    /***
     * @Author mengying
     * @Description 企业审核页
     * @Date 11:18 2019/6/3
     * @Param entId
     * @return Ent
     **/
    public Ent chenckEntInfo(String entId);
    /***
     * @Author mengying
     * @Description 查询企业附件
     * @Date 11:18 2019/6/3
     * @Param entId
     * @return List<Ent>
     **/
    public List<Ent> attachmentList (String entId);
    /***
     * @Author mengying
     * @Description 改变企业审核状态
     * @Date 11:18 2019/6/3
     * @Param entId,entHistoryId,auditStatus
     * @return boolean
     **/
    public boolean updateEntStatus(@Param("entId") String entId,@Param("entHistoryId") String entHistoryId, @Param("auditStatus")String auditStatus);
    /***
     * @Author mengying
     * @Description 养殖场信息查看
     * @Date 11:18 2019/6/3
     * @Param Ent
     * @return List<Ent>
     **/
    public List<Ent> viewFarmInfo(Ent ent);

    /***
     * @Author zhangxingliang
     * @Description 获取养殖场养殖品种
     * @Date 11:18 2019/6/3
     * @Param [id]
     * @return java.util.List<java.util.Map < java.lang.String, java.lang.Object>>
     **/
    public List<Map<String, Object>> findEntAnimalList(String id);

    /**
     * @author Zhang Xingliang
     * @description 养殖场法人身份证唯一性校验
     * @date 14:21 2019/6/26
     * @params [idCard]
     * @return java.lang.String
     **/
    public String checkIdCardExist(@Param("idCard") String idCard,@Param("id") String id);

}